package datastructure.sort;

/**
 * @author yinlei
 * @date 2018/7/3
 * @since 1.0.0
 */
public class SortMain {

    interface Sort {
        void sort(int[] a);
    }

    public static void main(String[] args) {
        int[] arr = SortUtil.get();

        SortUtil.display(arr);
        getSort().sort(arr);
        SortUtil.display(arr);
    }

    private static Sort getSort() {
        return new HeapSort();
    }
}
